package com.ruoyi.mine.mapper;


import com.ruoyi.mine.dto.MineFileInfoUpdateDTO;
import com.ruoyi.mine.dto.MineFileUploadDTO;
import com.ruoyi.mine.pojo.MineFile;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MineFileMapper {
    void upload(MineFileUploadDTO mineFileUploadDTO);

    void delete(Integer id);

    void update(MineFileInfoUpdateDTO mineFile);

    List<MineFile> search(@Param("mineId") String mineId, @Param("fileType") String fileType, @Param("fileName") String fileName);

    Integer getCountId(Integer id);

    MineFile findById(Integer id);

}
